package com.virtualCat.service;

import com.virtualCat.common.Msg;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

@Service
public interface WeChatPayService {
    /**
     * 统一下单接口
     * @return
     */
    Msg unifiedOrder(Map<String,Object> map);

    /**
     * 支付通知回调
     * @param request
     * @param response
     * @return
     */
    Msg weiXinReceive(HttpServletRequest request, HttpServletResponse response);

    /**
     * 查询订单
     * @return
     */
    Msg toWXPaySuccess(String pay_id);
}
